package com.ljq.MT_Basics;

/**
 * Description:
 * Author:ljq
 * Date:2025-02-18
 * Time:23:49
 */
public class Test {
    public static void main(String[] args) {
//        MT_Fundamentals mt_fundamentals = new MT_Fundamentals();
//        mt_fundamentals.start();

        Thread thread = new Thread(() -> {
            for (int i = 100; i < 200; i++) {
                System.out.println(Thread.currentThread().getName() + "=" + i);
            }
        }, "小弟跑车");



        thread.start();
        try {
//            Thread.sleep(500);
            Thread.currentThread().join(); //当前线程处于阻塞状态
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        for (int i = 0; i < 2000; i++) {
            System.out.println(Thread.currentThread().getName() + "=" + i);
        }


    }
}
